<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      
      >
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title th:fragment="title">Action Edit</title>
		<th:block th:fragment="head">
		</th:block>
    </head>
    <body>
        <div th:fragment="content">
			<div class="col-md-12 center-block">
				<form action="#" th:action="@{/action/edit/} + ${action.id}" th:object="${action}" method="post" class="form-horizontal" role="form">
					<input type="hidden"  util:idPre="action-" th:field="*{id}" />
					<div class="form-group">
						<label for="action-code" class="col-md-4 control-label">Code</label>
						<div class="col-md-4">
							<input type="text" util:idPre="action-" th:field="*{code}" class="form-control" placeholder="Code" />
						</div>
					</div>
					<div class="form-group">
						<label for="action-name" class="col-md-4 control-label">Name</label>
						<div class="col-md-4">
							<input type="text" util:idPre="action-" th:field="*{name}" class="form-control" placeholder="Name" />
						</div>
					</div>
					<div class="form-group">
						<label for="action-type" class="col-md-4 control-label">Type</label>
						<div class="col-md-4">
							<input type="text" util:idPre="action-" th:field="*{type}" class="form-control" placeholder="Type" />
						</div>
					</div>
					<div class="form-group">
						<label for="action-repeatType" class="col-md-4 control-label">Repeat Type</label>
						<div class="col-md-4">
							<input type="text" util:idPre="action-" th:field="*{repeatType}" class="form-control" placeholder="Repeat Type" />
						</div>
					</div>
					<div class="form-group">
						<label for="action-resultUnit" class="col-md-4 control-label">Result Unit</label>
						<div class="col-md-4">
							<input type="text" util:idPre="action-" th:field="*{resultUnit}" class="form-control" placeholder="Result Unit" />
						</div>
					</div>
					<div class="form-group">
						<label for="action-costUnit" class="col-md-4 control-label">Cost Unit</label>
						<div class="col-md-4">
							<input type="text" util:idPre="action-" th:field="*{costUnit}" class="form-control" placeholder="Cost Unit" />
						</div>
					</div>
					<div class="form-group">
						<div class="col-md-4 col-md-offset-4">
							<div class="checkbox">
								<input type="hidden" name="enabled" th:value="*{enabled}? true : false" />
								<input id="action-enabled" type="checkbox" th:checked="*{enabled}" />
								<label for="action-enabled">Enabled</label>
							</div>
						</div>
					</div>
					<div class="form-group">
						<div class="col-md-4 col-md-offset-4">
							<button class="btn btn-md btn-primary" type="submit">Edit</button>
							<button class="btn btn-md btn-primary col-md-offset-1" type="reset">Reset</button>
						</div>
					</div>
				</form>
			</div>
        </div>
		<th:block th:fragment="script">
			<script th:src="@{/assets/js/page/action/edit.js" type="text/javascript"></script>
			<script th:src="@{/assets/js/share/boolCheckbox.js" type="text/javascript"></script>
		</th:block>
    </body>
</html>